<?php
defined('IN_PHPCMS') or exit('No permission resources.');
class index{
	function __construct() {
		$this->siteid = isset($_GET['siteid']) ? intval($_GET['siteid']) : get_siteid();
  		define("SITEID",$siteid);
  		$this->db = pc_base::load_model('jlsx_model');
	}

	public function init() {
		$where = array('p_id'=>1);
 		$page = isset($_GET['page']) && intval($_GET['page']) ? intval($_GET['page']) : 1;		
		$infos = $this->db->listinfo($where,$order = 'j_id DESC',$page, $pages = '9');
		//include template('qzzp', 'index');
		print_r($infos);
	}


	public function qz_add(){
		include template('qzzp', 'qz_add');
	}		
}
?>